package string;

public class MyString implements IMyString {
    private char[] value;

    public MyString() {
        this.value = new char[0];
    }

    public MyString(String s) {
        this.value = new char[s.length()];
        for (int i = 0; i < this.value.length; i++) {
            this.value[i] = s.charAt(i);
        }
    }

    public MyString(char[] value) {
        this(new String(value));
    }

    public MyString(MyString s) {
        this(s.value);
    }


    @Override
    public int length() {
        return 0;
    }

    @Override
    public boolean isEmpty() {
        return false;
    }

    @Override
    public char charAt(int i) {
        return 0;
    }

    @Override
    public MyString substring(int begin, int end) {
        return null;
    }

    @Override
    public MyString substring(int begin) {
        return null;
    }

    @Override
    public MyString concat(MyString s) {
        return null;
    }

    @Override
    public MyString trim() {
        return null;
    }

    @Override
    public MyString toLowerCase() {
        return null;
    }

    @Override
    public MyString toUpperCase() {
        return null;
    }

    @Override
    public boolean startsWith(MyString prefix) {
        return false;
    }

    @Override
    public boolean endsWith(MyString suffix) {
        return false;
    }

    @Override
    public int parseInt(MyString str) {
        return 0;
    }

    @Override
    public MyString toBinary(int value) {
        return null;
    }

    @Override
    public int indexOf(MyString pattern) {
        return 0;
    }


    public static void main(String args[]) {
        MyString string1 = new MyString("asDfG  hjK  lm");
        System.out.println(string1);
        System.out.println(string1.length());
        System.out.println(string1.isEmpty());
        System.out.println(string1.charAt(4));
        System.out.println(string1.substring(1, 5));
        System.out.println(string1.concat(new MyString("concat-string")));
        System.out.println(string1.trim());
        System.out.println(string1.toLowerCase());
        System.out.println(string1.toUpperCase());
        System.out.println(string1.startsWith(new MyString("asD")));
        System.out.println(string1.endsWith(new MyString("lm")));
        System.out.println(string1.parseInt(new MyString("5654862")));
        System.out.println(string1.toBinary(0xFFFF));
        System.out.println(string1.indexOf(new MyString("DfG")));

    }

}